package service;

import dao.OrderDao;
import dao.OrderItemDao;
import donain.Order;

import java.sql.SQLException;

public class OderService {
    private OrderDao orderDao=new OrderDao();
    private OrderItemDao orderItemDao=new OrderItemDao();
    public  OderService(Order order) throws SQLException {
        orderDao.addProduct(order);
        orderItemDao.addOrderItem(order);
    }
}
